home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / winter_challenge.swf / scripts / frame_44 / PlaceObject2_144_269 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-08-19  |  968b  |  37 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.ATV_keyBlock == 0 && _root.gameInProgress == 1 && !Key.isDown(38))
  3.    {
  4.       if(_root.engineSound.myAction != "brk" && this._currentframe != 2)
  5.       {
  6.          _root.engineSound.myAction = "dec";
  7.       }
  8.    }
  9.    if(_root.ATV_keyBlock == 0 && _root.gameInProgress == 1 && Key.isDown(38))
  10.    {
  11.       if(_root.engineSound.myAction != "brk")
  12.       {
  13.          _root.engineSound.myAction = "acc";
  14.       }
  15.    }
  16.    if(myHolder != myAction)
  17.    {
  18.       switch(myAction)
  19.       {
  20.          case "acc":
  21.             this.gotoAndStop(myAction);
  22.             break;
  23.          case "dec":
  24.             this.gotoAndStop(myAction);
  25.             break;
  26.          case "brk":
  27.             _root.acc.stop();
  28.             _root.dec.stop();
  29.             _root.minimo.stop();
  30.             _root.massimo.stop();
  31.             this.gotoAndStop("minimo");
  32.             myAction = "default1";
  33.       }
  34.       myHolder = myAction;
  35.    }
  36. }
  37.